﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NewsType.aspx.cs" Inherits="CJJCH.Web.Manage.NewsType" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../Style/SystemCss.css" rel="stylesheet" type="text/css" />
    <script src="../JScript/jquery-1.4.4.min.js" type="text/javascript"></script>
    <script src="../JScript/Calendar/WdatePicker.js" type="text/javascript"></script>
    <script src="../Script/JQcheck.js" type="text/javascript"></script>
    <script>
        function checkform() {
            if (IsNothing($("#txtMenuName"),"请输入类别名称！")) {
                return false;
            }
            if (IsNothing($("#txtOrderNum"), "请输入排序号！")) {
                return false;
            }
            else if (checkdigit($("#txtOrderNum"), "排序号必须是数字！"))
            {
                return false;
            }
            return true;
        }
    </script>
    <style type="text/css">
        .style1
        {
            height: 21px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div id="divHidden" runat="server" style="display: none;">
        <asp:Label ID="lblSecondID" runat="server"></asp:Label>
        <asp:Label ID="lblSecondName" runat="server"></asp:Label>
        <asp:Label ID="lblkeyword" runat="server"></asp:Label>
    </div>
    <div class="BodyRight" style="width: 100%;">
        <uc:NewsTop ID="NewsTop1" runat="server" IIndex="3" />
        <table border="0" cellspacing="0" cellpadding="0" height="100%" width="100%">
            <tr>
                <td width="1" height="100%" class="Left">
                </td>
                <td height="100%" style="width: auto; height: 100%; background: #d7e7ff;">
                    <div class="MainbodyTop" style="margin-bottom: 5px;">
                        <div class="MainSearch" style="width: 100%; margin: 5px 0px 5px 0px;">
                            <table border="0" cellpadding="2" cellspacing="0" width="auto">
                                <tr>
                                    <td>
                                        类别：<asp:TextBox ID="txtKeyword" runat="server" class="InputSearch_x1" Width="120px"></asp:TextBox>
                                    </td>
                                    <td>
                                        <asp:Button ID="btnSearch" runat="server" Text=" 搜 索 " Style="padding: 2px 10px 3px 10px"
                                            Width="62px" CssClass="BtnSearch_x1" OnClick="btnSearch_Click" />
                                            
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>
                    <div class="RBodyTable_x2 Link_font" style="width: 100%;">
                        <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"
                            class="font">
                            <tr>
                                <th width="35%" align="center" valign="middle" class="HeaderBg">
                                    类别
                                </th>
                                <th width="35%" align="center" valign="middle" class="HeaderBg">
                                    排序
                                </th>
                                <th width="30%" align="center" valign="middle" class="HeaderBg">
                                    操作
                                </th>
                            </tr>
                            <asp:Repeater ID="rptMenuThird" runat="server" OnItemDataBound="rptMenuThird_ItemDataBound">
                                <ItemTemplate>
                                    <tr class="tdBg1">
                                        <td align="center" valign="middle">
                                            <asp:TextBox ID="txtMenuName" runat="server" class="InputSearch_x1" Width="120px"></asp:TextBox>
                                        </td>
                                        <td align="center" valign="middle">
                                            <asp:TextBox ID="txtOrderNum" runat="server" class="InputSearch_x1" Width="120px"></asp:TextBox>
                                        </td>
                                        <td align="center" valign="middle">
                                            <asp:LinkButton ID="lbtnEdit" runat="server" OnClick="lbtnEdit_Click">修改</asp:LinkButton>
                                            <asp:LinkButton ID="lbtnDel" runat="server" OnClick="lbtbDel_Click">删除</asp:LinkButton>
                                        </td>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                        </table>
                        <asp:Literal ID="litMessage" runat="server"></asp:Literal>
                        <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
                            <tr>
                                <th width="35%" align="center" valign="middle" class="HeaderBg">
                                    类别
                                </th>
                                <th width="35%" align="center" valign="middle" class="HeaderBg">
                                    排序
                                </th>
                                <th width="30%" align="center" valign="middle" class="HeaderBg">
                                    操作
                                </th>
                            </tr>
                            <tr class="tdBg1">
                                <td align="center" valign="middle" class="style1">
                                    <asp:TextBox ID="txtMenuName" runat="server" class="InputSearch_x1" Width="120px"></asp:TextBox>
                                </td>
                                <td align="center" valign="middle" class="style1">
                                    <asp:TextBox ID="txtOrderNum" runat="server" class="InputSearch_x1" Width="120px"></asp:TextBox>
                                </td>
                                <td align="center" valign="middle" class="style1">
                                    
                                    &nbsp;&nbsp;&nbsp;
                                    <asp:LinkButton ID="lbtbAdd" runat="server" OnClick="lbtnAdd_Click" OnClientClick="return checkform();">添加</asp:LinkButton>
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
                <td width="0" height="100%" class="Right">
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
